package com.qf.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.entity.Coupon;
import com.qf.entity.PricesParams;

import java.util.Date;
import java.util.List;

/**
 * (Coupon)表服务接口
 *
 * @author makejava
 * @since 2020-10-14 14:33:55
 */
public interface CouponService extends IService<Coupon> {

    boolean couponGet(Integer cid, Integer method);

    List<Coupon> list(Integer method);

    List<List<Coupon>> userList(PricesParams pricesParams);

    List<Coupon> queryByTimes(Date beginTime);

    int updateCouponNumber(Integer cid, Integer uid);
}